package com.unohacha.qqj.fzdr.personal.presenter;

import com.unohacha.qqj.fzdr.personal.bean.UserInfoBean;
import com.unohacha.qqj.fzdr.personal.model.PersonalImpl;
import com.unohacha.qqj.fzdr.personal.view.IPersonal;

public class PersonalPresenter implements IPersonalPresenter {

    private IPersonal iPersonal;

    private PersonalImpl personalImpl;


    public PersonalPresenter(IPersonal personal) {
        this.iPersonal = personal;
        personalImpl = new PersonalImpl(this);
    }

    @Override
    public void getUserInfo(String token) {
        // 具体的 获取 UserInfo 逻辑
        personalImpl.getUserInfo(token);

    }

    @Override
    public void showUserInfo(UserInfoBean userInfo) {
        iPersonal.showUserInfo(userInfo);
    }



}
